<template>
	<view class="deatil-container">
		<uni-card >
			<view class="address">
				<view>选择收货人地址</view>
				<u-icon name="arrow-right" style="float: right;"></u-icon>
			</view>
			<view class="time">
				<view class="left">
					<text>送出时间</text>
					<text class="left-time">大概11：45送出</text>
				</view>
				<view class="now">立即送出</view>
			</view>
		</uni-card>
		
		<uni-card>
			<view class="top">
				<view class="name">	意大利超火的小面馆</view>
				<u-icon name="phone" color="#2588FF"></u-icon>
			</view>
			<view class="middle">
				<view class="middle-item">
					<view class="middle-left">
						<view class="img-box">
							<image src="/static/logo/logo.webp" class="img"></image>
						</view>
						<view class="name-box">
							<view class="name1">意大利超火的小面馆</view>
							<view class="name2">意大利超火的小面馆</view>
						</view>
					</view>
					<view class="price">
						<view>￥17</view>
						<view class="number">x1</view>
					</view>
				</view>
				<view class="middle-item">
					<view class="middle-left">
						<view class="img-box">
							<image src="/static/logo/logo.webp" class="img"></image>
						</view>
						<view class="name-box">
							<view class="name1">意大利超火的小面馆</view>
							<view class="name2">意大利超火的小面馆</view>
						</view>
					</view>
					<view class="price">
						<view>￥17</view>
						<view class="number">x1</view>
					</view>
				</view>
							
				</view>
			<view class="bottom">
				<view class="bottom-item">
					<view class="bottom-left">餐盒费</view>
					<view class="bottom-right">￥17</view>
				</view>
				<view class="bottom-item">
					<view class="bottom-left">配送费</view>
					<view class="bottom-right">￥17</view>
				</view>
			</view>
			<view class="last">
				共3件，需付<text class="total">￥34</text>
			</view>
		</uni-card>
		
		<uni-card >
			<view class="address">
				<view>备注</view>
				<u-icon name="arrow-right" style="float: right;"></u-icon>
			</view>
			<view class="time">
				<view class="now">餐具</view>
				<view class="tool">
					<text class="tip">请选择餐具数量</text>
					<u-icon name="arrow-right"></u-icon>	
				</view>
			</view>
		</uni-card>
	
		<view class="pay-info">
			<view class="total-price">
				共30元
			</view>
			<navigator url="/subpkg/pay/pay" class="pay">
				结算
			</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
.deatil-container {
	.uni-card {
		
		.address {
			display: flex;
			justify-content: space-between;
			height: 50px;
			border-bottom: 1px solid #E8E7E7;
			line-height: 50px;
		}
		.time {
			margin-top: 20px;
			display: flex;
			justify-content: space-between;
			.left {
				.left-time {
					margin-left: 10px;
					color: #FFB226;
				}
				
			}
		}
	}
	
	.uni-card {
		.top {
			height: 40px;
			line-height: 40px;
			border-bottom: 1px solid #E8E7E7;
			display: flex;
			justify-content: space-between;
			
		}
		.middle {
			border-bottom: 1px solid #E8E7E7;
			padding-bottom: 15px;
			margin: 15px 0;
		}
		.middle-item {
			
			display: flex;
			align-items: center;
			justify-content: space-between;
			
			.middle-left {
				display: flex;
				.img-box {
					width: 50px;
					height: 50px;
					border-radius: 10px;
					overflow: hidden;
					.img {
						width: 100%;
						height: 100%;
					}
				}
				.name-box {
					margin-left: 15px;
					.name2 {
						color: #9098A0;
						font-size: 12px;
					} 
				}
			}
			.price {
				.number {
					color: #9098A0;
					margin-left: 10px;
				}
			}
		}
		.bottom {
			border-bottom: 1px solid #E8E7E7;
			padding-bottom: 10px;
			
			.bottom-item {
				margin-bottom: 5px;
				display: flex;
				justify-content: space-between;
				.bottom-right {
					color: #9098A0;
				}
			}
		}
		.last {
			margin: 5px 0 10px;
			font-size: 12px;
			color: #9098A0;
			float: right;
			.total {
				color: red;
				font-size: 20px;
			}
		}
	}
}
.tool {
display: flex;
.tip {
	color: #a6a6a6;
}
}

.pay-info {
	height: 50px;
	display: flex;
	justify-content: center;
	color: white;
	.total-price {
		background-color: #3A3635;
		width: 55%;
		border-top-left-radius: 25px;
		border-bottom-left-radius: 25px;
		padding-left: 20px;
		line-height: 50px;
		
	}
	.pay {
		background-color: #2588FF;
		
		width: 25%;
		border-top-right-radius: 25px;
		border-bottom-right-radius: 25px;
		text-align: center;
		line-height: 50px;
	}
}
</style>
